<?php
/**
 * 推送数据相关
 * 
 * @package ews
 * @ews Enterprise WorkShop
 * @version 1.0 alpha
 * @since 2011-05-03
 * @author monkee
 */
class feedApp extends app
{
	public function comment(){
		$id = $this->getData('post/feed_id');
		$id = intval($id);
		$feedobj = & $this->getModel('feed');
		$feed = $feedobj->get_feed_by_id($id);
		
		$replyobj = & $this->getModel('reply');
		
		$comment = $replyobj->get_replys($feed['type'], $feed['relate_id']);
		return array(
			'comment' => $comment,
			'id' => $id,
			'feed' => $feed
		);
	}
}
?>